package com.axjc.gqzr.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;

public class MultipleSheetsListener extends AnalysisEventListener<MultipleSheetsData> {

    private static final Logger LOGGER = LoggerFactory.getLogger(MultipleSheetsListener.class);
    List<MultipleSheetsData> list = new ArrayList<MultipleSheetsData>();

    @Override
    public void invoke(MultipleSheetsData multipleSheetsData, AnalysisContext analysisContext) {
        list.add(multipleSheetsData);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }

    public List<MultipleSheetsData> getList() {
        return list;
    }

    public void setList(List<MultipleSheetsData> list) {
        this.list = list;
    }
}
